package net.model.composite;

public class MenuLeaf extends AbstractMenu {

	private float price;
	
	public MenuLeaf(String name, float price) {
		this.name = name;
		this.price = price;
	}
	
	public float getPrice() {
		return this.price;
	}
	
	
	public void print() {
		System.out.println("name:"+this.name+" price:"+this.price);
	}
}
